-- GENERATED SPELL FOR [Hellfire Watcher] --


function spell0_17309(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(12039,pUnit)
pUnit:RegisterEvent('Sorts_17309', 3000, 1)
end

function spell1_17309(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(30643,pUnit)
pUnit:RegisterEvent('Sorts_17309', 3500, 1)
end

function spell2_17309(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(8362,pUnit)
pUnit:RegisterEvent('Sorts_17309', 22000, 1)
end

function spell3_17309(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(14032,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17309', 18000, 1)
end

function Sorts_17309(pUnit, Event)
local choix_sorts_17309 = math.random(0, 3)
if choix_sorts_17309 == 0 then
pUnit:RegisterEvent('spell0_17309', 1, 1)
end
if choix_sorts_17309 == 1 then
pUnit:RegisterEvent('spell1_17309', 1, 1)
end
if choix_sorts_17309 == 2 then
pUnit:RegisterEvent('spell2_17309', 1, 1)
end
if choix_sorts_17309 == 3 then
pUnit:RegisterEvent('spell3_17309', 1, 1)
end
end

function mob17309_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17309', math.random(1500, 3000), 1)
end

function mob17309_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17309_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17309_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17309, 1, 'mob17309_Action')
RegisterUnitEvent(17309, 2, 'mob17309_Leave')
RegisterUnitEvent(17309, 3, 'mob17309_Kill')
RegisterUnitEvent(17309, 4, 'mob17309_Die')
